import 'package:flutter/material.dart';

class CustomTheme extends StatelessWidget {
  final Widget child;

  const CustomTheme({super.key, required this.child});

  static Color backgroundColor(BuildContext context) {
    return Theme.of(context).brightness == Brightness.dark
        ? Colors.black
        : const Color(0xFFF5F5F5);
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      color: backgroundColor(context),
      child: child,
    );
  }
}